package com.eugenezadyra.rsstotwitter.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

/**
 * @author eugene zadyra
 */
@Entity(name = "twitter_feed_subscription")
public class TwitterFeedSubscription extends AbstractEntity{
	@ManyToOne
	User user;
	@ManyToOne
	private Feed feed;
	@ManyToOne
	private Twitter twitter;
	@Column(name = "subscription_date")
	private Date subscriptionDate;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Feed getFeed() {
		return feed;
	}

	public void setFeed(Feed feed) {
		this.feed = feed;
	}

	public Twitter getTwitter() {
		return twitter;
	}

	public void setTwitter(Twitter twitter) {
		this.twitter = twitter;
	}

	public Date getSubscriptionDate() {
		return subscriptionDate;
	}

	public void setSubscriptionDate(Date subscriptionDate) {
		this.subscriptionDate = subscriptionDate;
	}
}
